package com.siyu.prewarn.skreservoirdutyperson.domain;

import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.siyu.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 水库责任人基础信息对象 sk_reservoir_duty_person
 *
 * @author hrhy
 * @date 2024-06-27
 */
@TableName("sk_reservoir_duty_person")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SkReservoirDutyPerson {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 水库编码
     */
    @Excel(name = "水库编码")
    private String rscd;

    /**
     * 水库名称
     */
    @Excel(name = "水库名称")
    private String rsnm;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unit;

    /**
     * 职务
     */
    @Excel(name = "职务")
    private String duty;

    /**
     * 责任人类型
     */
    @Excel(name = "责任人类型")
    private String dutyPerson;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String mobile;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private String creator;

    /**
     * 修改人
     */
    @Excel(name = "修改人")
    private String modifier;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String emergencycontact;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String emergencycontactphone;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String trainingtime;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
